$(function () { 
    $('.login').click(function () { 
        $.ajax({
            url:'/employee/employeeLogin',
            type:'POST',
            data:{
                username:$('#userName').val(),
                password:$('#inputPassword').val()
            },
            success:function (dataBack) { 
                // console.log(dataBack);
                if(dataBack.success){
                    window.location.href='index.html';
                }
             }
        })
     })
 })